<template>
  <div class="row justify-content-center">
    <div class="col-8">
      <div v-if="roomSupportingFacilities">
        <h2 class="jh-entity-heading" data-cy="roomSupportingFacilitiesDetailsHeading">
          <span>RoomSupportingFacilities</span> {{ roomSupportingFacilities.id }}
        </h2>
        <dl class="row jh-entity-details">
          <dt>
            <span>Washer</span>
          </dt>
          <dd>
            <span>{{ roomSupportingFacilities.washer }}</span>
          </dd>
          <dt>
            <span>Air Condition</span>
          </dt>
          <dd>
            <span>{{ roomSupportingFacilities.airCondition }}</span>
          </dd>
          <dt>
            <span>Water Heater</span>
          </dt>
          <dd>
            <span>{{ roomSupportingFacilities.waterHeater }}</span>
          </dd>
          <dt>
            <span>Bed</span>
          </dt>
          <dd>
            <span>{{ roomSupportingFacilities.bed }}</span>
          </dd>
          <dt>
            <span>Heating</span>
          </dt>
          <dd>
            <span>{{ roomSupportingFacilities.heating }}</span>
          </dd>
          <dt>
            <span>Wardrobe</span>
          </dt>
          <dd>
            <span>{{ roomSupportingFacilities.wardrobe }}</span>
          </dd>
          <dt>
            <span>Refrigerator</span>
          </dt>
          <dd>
            <span>{{ roomSupportingFacilities.refrigerator }}</span>
          </dd>
          <dt>
            <span>Natural Gas</span>
          </dt>
          <dd>
            <span>{{ roomSupportingFacilities.naturalGas }}</span>
          </dd>
          <dt>
            <span>Internet</span>
          </dt>
          <dd>
            <span>{{ roomSupportingFacilities.internet }}</span>
          </dd>
          <dt>
            <span>Television</span>
          </dt>
          <dd>
            <span>{{ roomSupportingFacilities.television }}</span>
          </dd>
        </dl>
        <button type="submit" v-on:click.prevent="previousState()" class="btn btn-info" data-cy="entityDetailsBackButton">
          <font-awesome-icon icon="arrow-left"></font-awesome-icon>&nbsp;<span> Back</span>
        </button>
        <router-link
          v-if="roomSupportingFacilities.id"
          :to="{ name: 'RoomSupportingFacilitiesEdit', params: { roomSupportingFacilitiesId: roomSupportingFacilities.id } }"
          custom
          v-slot="{ navigate }"
        >
          <button @click="navigate" class="btn btn-primary">
            <font-awesome-icon icon="pencil-alt"></font-awesome-icon>&nbsp;<span> Edit</span>
          </button>
        </router-link>
      </div>
    </div>
  </div>
</template>

<script lang="ts" src="./room-supporting-facilities-details.component.ts"></script>
